package cn.t222.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result implements Serializable {
    private String code;
    private String msg;
    private Object data;
    public static Result ok(String code, String msg, Object data) {
        return new Result(code, msg, data);
    }
    public static Result error(String code, String msg, Object data) {
        return new Result(code, msg, data);
    }
}
